import request from '@/utils/request'


let BASE_ADDRESS = '/assess/examSubject'
// --------  考试题目 --------
//分页查询
export const getExamSubjectListApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//添加
export const getExamSubjectAddApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data: data
    })
}

//修改
export const getExamSubjectEditApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data: data
    })
}

//删除
export const getExamSubjectRemoveApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove/${data}`,
        method: 'delete',


    })
}
//id查询
export const getExamSubjectGetInfoApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}